<!DOCTYPE html>
<html lang="en" ng-app="scanQRCode">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
  <link rel="stylesheet" type="text/css" href="assets/css/weui.min.css" />
  <link rel="stylesheet" type="text/css" href="assets/css/style.css" />
  <link rel="stylesheet" type="text/css" href="assets/css/orderPay.css" />
</head>
<body ng-controller="scanQRCodeController">
  <div class="orderContainer">
      <div class="orderRow">
        <p class=""><img src="assets/images/qrcode_img1.jpg" class="qrcode_img1" width="88%" /></p>
        <p><a href="javascript:;" ng-click="scanQRCode()" class="weui-btn weui-btn_primary scanQRBtn">扫码充电</a></p>
      </div>
      <div class="orderRow">
        <p class=""><img src="assets/images/qrcode_img2.jpg" class="qrcode_img2" width="92%" /></p>
        <p class="textCenter"><input class="weui-btn qrcode_input fs18" type="text" name="" placeholder="输入桩上二维码编号" ng-model="qrCode"></p>
        <p><a href="javascript:;" ng-click="manualCode()" class="weui-btn weui-btn_primary scanQRBtn">确定</a></p>
      </div>
  </div>
</body>
<script src="assets/scripts/app/mainConfig.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="assets/scripts/angular/angular.min.js"></script>
<script src="assets/scripts/app/mainservice.js"></script>
<script src="assets/scripts/app/scanQRcode.js"></script>
<!--<script>
  /*
   * 注意：
   * 1. 所有的JS接口只能在公众号绑定的域名下调用，公众号开发者需要先登录微信公众平台进入“公众号设置”的“功能设置”里填写“JS接口安全域名”。
   * 2. 如果发现在 Android 不能分享自定义内容，请到官网下载最新的包覆盖安装，Android 自定义分享接口需升级至 6.0.2.58 版本及以上。
   * 3. 常见问题及完整 JS-SDK 文档地址：http://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd9148dd613f.html
   *
   * 开发中遇到问题详见文档“附录5-常见错误及解决办法”解决，如仍未能解决可通过以下渠道反馈：
   * 邮箱地址：weixin-open@qq.com
   * 邮件主题：【微信JS-SDK反馈】具体问题
   * 邮件内容说明：用简明的语言描述问题所在，并交代清楚遇到该问题的场景，可附上截屏图片，微信团队会尽快处理你的反馈。
   */
  wx.config({
      debug: true,
      appId: 'wxd49ee71e96e9ba2d',
      timestamp: 1477446765,
      nonceStr: 'Fuddg3BR2ZYlMoci',
      signature: '721ae285b7a1bee61903ae5618bebc7238c14ecb',
      jsApiList: [
        'checkJsApi',
        'onMenuShareTimeline',
        'onMenuShareAppMessage',
        'onMenuShareQQ',
        'onMenuShareWeibo',
        'onMenuShareQZone',
        'hideMenuItems',
        'showMenuItems',
        'hideAllNonBaseMenuItem',
        'showAllNonBaseMenuItem',
        'translateVoice',
        'startRecord',
        'stopRecord',
        'onVoiceRecordEnd',
        'playVoice',
        'onVoicePlayEnd',
        'pauseVoice',
        'stopVoice',
        'uploadVoice',
        'downloadVoice',
        'chooseImage',
        'previewImage',
        'uploadImage',
        'downloadImage',
        'getNetworkType',
        'openLocation',
        'getLocation',
        'hideOptionMenu',
        'showOptionMenu',
        'closeWindow',
        'scanQRCode',
        'chooseWXPay',
        'openProductSpecificView',
        'addCard',
        'chooseCard',
        'openCard'
      ]
  });
  
	wx.ready(function () {
	  // 9.1.2 扫描二维码并返回结果
		wx.scanQRCode({
		  needResult: 1,
		  desc: 'scanQRCode desc',
		  success: function (res) {
			var datastr=JSON.stringify(res);
			alert(datastr);
		  }
		});
	});

	wx.error(function (res) {
		alert(res.errMsg);
	});
</script>-->

</html>